package com.xiaoye.qbproject.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 兵力编程编组 和 战例关系
 * @TableName BLBC_WARFARE_EXAMPLES_RELATION
 */
@TableName(value ="BLBC_WARFARE_EXAMPLES_RELATION")
@Data
public class BlbcWarfareExamplesRelation implements Serializable {
    /**
     * 兵力编程编组ID
     */
    private String blbcId;

    /**
     * 战例ID
     */
    private String warfareExamplesId;

    /**
     * 关系描述
     */
    private String text;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BlbcWarfareExamplesRelation other = (BlbcWarfareExamplesRelation) that;
        return (this.getBlbcId() == null ? other.getBlbcId() == null : this.getBlbcId().equals(other.getBlbcId()))
            && (this.getWarfareExamplesId() == null ? other.getWarfareExamplesId() == null : this.getWarfareExamplesId().equals(other.getWarfareExamplesId()))
            && (this.getText() == null ? other.getText() == null : this.getText().equals(other.getText()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBlbcId() == null) ? 0 : getBlbcId().hashCode());
        result = prime * result + ((getWarfareExamplesId() == null) ? 0 : getWarfareExamplesId().hashCode());
        result = prime * result + ((getText() == null) ? 0 : getText().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", blbcId=").append(blbcId);
        sb.append(", warfareExamplesId=").append(warfareExamplesId);
        sb.append(", text=").append(text);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}